package com.demo.threadpool;

import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

public class ThreadPoolExecutorMain {
    public static void main(String[] args) {
        // 必须要指定队列大小
        ThreadPoolExecutor th = new ThreadPoolExecutor(5, 10, 100, TimeUnit.SECONDS,
                new ArrayBlockingQueue<Runnable>(10));


    }
}
